﻿<%@ Page MasterPageFile="~/Site.Master" Language="C#" AutoEventWireup="true" CodeBehind="Catalogue.aspx.cs" Inherits="VeryExtremeArt.Catalogue" %>

<asp:Content ContentPlaceHolderID="headerPlaceHolder" runat="server">
    <title>Register - UCN Art Club</title>
    <script>
        $(document).ready(function (e) {
            $("ul.nav.navbar-nav > li:nth-child(4)").addClass("active");
        })
    </script>
</asp:Content>
<asp:Content ContentPlaceHolderID="contentPlaceHolder" runat="server">
    <form runat="server" method="get" action="Catalogue.aspx">
        <asp:Repeater ID="catalogueItems" runat="server">
            <ItemTemplate>
                <div class="col-sm-6 col-md-4">
                    <div class="thumbnail">
                        <img src="<%#Eval("ImgLocation") %>">
                        <div class="caption">
                            <h3><%#Eval("Name")%></h3>
                            <h4><%#Eval("Artist")%></h4>
                            <p><%#Eval("Description")%></p>
                            <form action="Catalogue.aspx">
                                <input id="bidItemId" name="bidItemId" type="hidden" value="<%#Eval("Id")%>" />
                                <input id="bidItemValue" class="form-control" name="bidItemValue" type="text" value="<%#Eval("CurrentPrice")%>" style="max-width: 100px; display: inline-block" maxlength="8" />
                                DKK
                                <input type="submit" value="Bid" class="btn btn-success"/>
                            </form>
                        </div>
                    </div>
                </div>
            </ItemTemplate>
        </asp:Repeater>
    </form>
</asp:Content>

